import request from "@/utils/request";

export const pageTableData = (query) => request.get('/api/admin/order/conditionSearch' ,{params: query})

export const completeOrder = (id) => request.put(`/api/admin/order/complete/${id}`, id)

export const cancelOrder = (orderRejectionDTO) => request.put('/api/admin/order/cancel',orderRejectionDTO)